﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace DbWord.Request
{
    public class Helper
    {
        public Request.Idb Idb { get; set; }

        public Helper()
        {
            switch (ConfigurationManager.AppSettings["RequestDb"])
            {
                case "Local": Idb = new Local(); break;
                case "Oracle": Idb = new Oracle(); break;
                default: throw new Exception("request appSettings.RequestDb on app.config");
            }
        }



    }
}
